
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>社交网站问答列表样式</title>
    <!-- Bootstrap 5 CSS -->
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
    <!-- Font Awesome -->
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>
        /* 通用样式 */
        .qa-demo {
            margin-bottom: 4rem;
            padding: 2rem;
            border: 1px solid #eaeaea;
            border-radius: 8px;
            background-color: white;
        }
        
        .demo-title {
            margin-bottom: 2rem;
            padding-bottom: 1rem;
            border-bottom: 1px solid #eaeaea;
        }
        
        .qa-card {
            transition: transform 0.2s ease, box-shadow 0.2s ease;
            margin-bottom: 1.5rem;
            border-radius: 8px;
            overflow: hidden;
        }
        
        .qa-card:hover {
            transform: translateY(-3px);
            box-shadow: 0 10px 20px rgba(0,0,0,0.08);
        }
        
        .user-info img {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            object-fit: cover;
        }
        
        .stats {
            color: #6c757d;
            font-size: 0.875rem;
        }
        
        .stats i {
            margin-right: 4px;
        }
        
        .action-buttons button {
            transition: all 0.2s ease;
        }
        
        .action-buttons button:hover {
            transform: scale(1.05);
        }
        
        .qa-date {
            font-size: 0.875rem;
            color: #6c757d;
        }
        
        .qa-status {
            font-size: 0.75rem;
            padding: 0.25rem 0.75rem;
            border-radius: 4px;
        }
        
        .status-resolved {
            background-color: #dcfce7;
            color: #166534;
        }
        
        .status-unresolved {
            background-color: #fee2e2;
            color: #dc2626;
        }
        
        .status-popular {
            background-color: #dbeafe;
            color: #1e40af;
        }
        
        /* 图片容器样式 */
        .images-container {
            display: flex;
            gap: 4px;
            margin: 0.75rem 0;
        }
        
        .images-container img {
            border-radius: 4px;
            object-fit: cover;
        }
        
        .single-image {
            width: 100%;
            max-height: 200px;
        }
        
        .multiple-images img {
            flex: 1;
            height: 120px;
        }
        
        .multiple-images img:nth-child(n+4) {
            display: none;
        }
        
        .image-count-badge {
            position: absolute;
            bottom: 8px;
            right: 8px;
            background-color: rgba(0,0,0,0.7);
            color: white;
            border-radius: 4px;
            padding: 0.25rem 0.5rem;
            font-size: 0.75rem;
        }
        
        /* 样式1：标准卡片式 */
        .style-1 .qa-card {
            border: 1px solid #eaeaea;
        }
        
        .style-1 .qa-content {
            padding: 1.25rem;
        }
        
        .style-1 .question-title {
            font-size: 1.1rem;
            margin-bottom: 0.75rem;
            transition: color 0.2s;
        }
        
        .style-1 .question-title:hover {
            color: #0d6efd;
        }
        
        .style-1 .question-text {
            color: #495057;
            margin-bottom: 1rem;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        
        /* 样式2：紧凑列表式 */
        .style-2 .qa-card {
            border: none;
            border-bottom: 1px solid #eaeaea;
            padding: 1rem 0;
        }
        
        .style-2 .qa-card:last-child {
            border-bottom: none;
        }
        
        .style-2 .question-title {
            font-size: 1rem;
            margin-bottom: 0.5rem;
        }
        
        .style-2 .question-text {
            color: #6c757d;
            font-size: 0.9rem;
            margin-bottom: 0.75rem;
            display: -webkit-box;
            -webkit-line-clamp: 1;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        
        /* 样式3：带侧边统计的问答 */
        .style-3 .qa-card {
            border: 1px solid #eaeaea;
        }
        
        .style-3 .stats-sidebar {
            background-color: #f8fafc;
            padding: 1rem;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            border-right: 1px solid #eaeaea;
        }
        
        .style-3 .stat-value {
            font-size: 1.25rem;
            font-weight: bold;
            color: #333;
        }
        
        .style-3 .stat-label {
            font-size: 0.8rem;
            color: #6c757d;
            text-align: center;
        }
        
        .style-3 .qa-content {
            padding: 1rem;
        }
        
        /* 样式4：突出回答的问答 */
        .style-4 .qa-card {
            border-left: 4px solid #3b82f6;
            background-color: white;
            box-shadow: 0 2px 8px rgba(0,0,0,0.05);
        }
        
        .style-4 .qa-header {
            padding: 1rem 1.25rem;
            border-bottom: 1px solid #e2e8f0;
        }
        
        .style-4 .best-answer {
            background-color: #f8fafc;
            padding: 1rem 1.25rem;
            border-top: 1px solid #e2e8f0;
            border-bottom: 1px solid #e2e8f0;
        }
        
        .style-4 .best-answer-label {
            font-size: 0.875rem;
            font-weight: 500;
            color: #1e40af;
            margin-bottom: 0.5rem;
            display: inline-block;
        }
        
        .style-4 .answer-text {
            font-size: 0.95rem;
            color: #333;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        
        .style-4 .qa-footer {
            padding: 0.75rem 1.25rem;
            display: flex;
            flex-wrap: wrap;
            justify-content: space-between;
            align-items: center;
        }
        
        /* 响应式调整 */
        @media (max-width: 768px) {
            .style-3 .stats-sidebar {
                border-right: none;
                border-bottom: 1px solid #eaeaea;
                flex-direction: row;
                gap: 2rem;
            }
            
            .action-buttons {
                margin-top: 0.75rem;
            }
            
            .style-4 .qa-footer {
                flex-direction: column;
                align-items: flex-start;
                gap: 0.75rem;
            }
        }
    </style>
</head>
<body class="p-4 bg-light">
    <div class="container">
        <h1 class="text-center mb-5">社交网站问答列表样式</h1>
        
        <!-- 样式1：标准卡片式 -->
        <div class="qa-demo style-1">
            <h3 class="demo-title">1. 标准卡片式问答</h3>
            
            <!-- 带单张图片的问答 -->
            <div class="qa-card">
                <div class="qa-content">
                    <div class="d-flex justify-content-between align-items-start mb-3">
                        <div class="user-info d-flex align-items-center">
                            <img src="https://picsum.photos/100/100?random=201" alt="提问者头像">
                            <div class="ms-2">
                                <div class="font-medium">李小华</div>
                                <div class="text-sm text-muted">提问于 <span class="qa-date">3天前</span></div>
                            </div>
                        </div>
                        <span class="qa-status status-resolved"><i class="fas fa-check-circle me-1"></i> 已解决</span>
                    </div>
                    
                    <h5 class="question-title">
                        <a href="#" class="text-dark text-decoration-none hover:text-primary">如何解决iPhone 14拍照时出现的光斑问题？</a>
                    </h5>
                    
                    <p class="question-text">最近购买了iPhone 14，在拍摄逆光场景时，照片上总是会出现奇怪的光斑，调整了各种设置都无法解决。有没有遇到同样问题的朋友，你们是怎么解决的？</p>
                    
                    <!-- 单张图片 -->
                    <div class="images-container position-relative">
                        <img src="https://picsum.photos/800/400?random=11" alt="iPhone拍照光斑问题示例" class="single-image">
                    </div>
                    
                    <div class="d-flex flex-wrap justify-content-between align-items-center gap-3 mt-3">
                        <div class="stats d-flex gap-4">
                            <span><i class="far fa-eye"></i> 2.4k 浏览</span>
                            <span><i class="far fa-comment"></i> 18 个回答</span>
                            <span><i class="far fa-thumbs-up"></i> 42 赞同</span>
                        </div>
                        
                        <div class="action-buttons d-flex gap-2">
                            <button class="btn btn-sm btn-outline-primary rounded-pill">
                                <i class="far fa-thumbs-up me-1"></i> 赞同
                            </button>
                            <button class="btn btn-sm btn-outline-secondary rounded-pill">
                                <i class="far fa-bookmark me-1"></i> 收藏
                            </button>
                            <button class="btn btn-sm btn-primary rounded-pill">
                                <i class="fas fa-comment me-1"></i> 回答
                            </button>
                            <button class="btn btn-sm btn-outline-secondary rounded-pill">
                                <i class="fas fa-info-circle me-1"></i> 详情
                            </button>
                        </div>
                    </div>
                </div>
            </div>
            
            <!-- 带多张图片的问答 -->
            <div class="qa-card">
                <div class="qa-content">
                    <div class="d-flex justify-content-between align-items-start mb-3">
                        <div class="user-info d-flex align-items-center">
                            <img src="https://picsum.photos/100/100?random=202" alt="提问者头像">
                            <div class="ms-2">
                                <div class="font-medium">王大明</div>
                                <div class="text-sm text-muted">提问于 <span class="qa-date">1天前</span></div>
                            </div>
                        </div>
                        <span class="qa-status status-unresolved"><i class="fas fa-question-circle me-1"></i> 未解决</span>
                    </div>
                    
                    <h5 class="question-title">
                        <a href="#" class="text-dark text-decoration-none hover:text-primary">这几种植物叶子发黄是什么原因？如何解决？</a>
                    </h5>
                    
                    <p class="question-text">家里养的几盆植物最近叶子都出现了发黄的情况，不同植物表现不太一样。有的是叶尖发黄，有的是整片叶子发黄，还有的是叶脉间发黄。浇水频率和以前一样，不知道是什么原因导致的？</p>
                    
                    <!-- 多张图片 -->
                    <div class="images-container multiple-images position-relative">
                        <img src="https://picsum.photos/300/200?random=12" alt="植物叶子发黄情况1">
                        <img src="https://picsum.photos/300/200?random=13" alt="植物叶子发黄情况2">
                        <img src="https://picsum.photos/300/200?random=14" alt="植物叶子发黄情况3">
                        <img src="https://picsum.photos/300/200?random=15" alt="植物叶子发黄情况4">
                        <span class="image-count-badge">+1</span>
                    </div>
                    
                    <div class="d-flex flex-wrap justify-content-between align-items-center gap-3 mt-3">
                        <div class="stats d-flex gap-4">
                            <span><i class="far fa-eye"></i> 1.8k 浏览</span>
                            <span><i class="far fa-comment"></i> 7 个回答</span>
                            <span><i class="far fa-thumbs-up"></i> 23 赞同</span>
                        </div>
                        
                        <div class="action-buttons d-flex gap-2">
                            <button class="btn btn-sm btn-outline-primary rounded-pill">
                                <i class="far fa-thumbs-up me-1"></i> 赞同
                            </button>
                            <button class="btn btn-sm btn-outline-secondary rounded-pill">
                                <i class="far fa-bookmark me-1"></i> 收藏
                            </button>
                            <button class="btn btn-sm btn-primary rounded-pill">
                                <i class="fas fa-comment me-1"></i> 回答
                            </button>
                            <button class="btn btn-sm btn-outline-secondary rounded-pill">
                                <i class="fas fa-info-circle me-1"></i> 详情
                            </button>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        
        <!-- 样式2：紧凑列表式 -->
        <div class="qa-demo style-2">
            <h3 class="demo-title">2. 紧凑列表式问答</h3>
            
            <!-- 带图片的问答 -->
            <div class="qa-card">
                <div class="row">
                    <div class="col-md-2 d-none d-md-block">
                        <div class="images-container">
                            <img src="https://picsum.photos/200/200?random=16" alt="旅行背包图片" style="width: 100%; height: 100px; object-fit: cover;">
                        </div>
                    </div>
                    <div class="col-md-10">
                        <h5 class="question-title">
                            <a href="#" class="text-dark text-decoration-none hover:text-primary">求推荐一款适合长途旅行的背包，预算1000元左右</a>
                        </h5>
                        
                        <p class="question-text">计划明年进行为期一个月的欧洲背包旅行，需要一款轻便、耐用且容量适中的背包，最好有良好的背负系统，预算1000元左右。有使用过类似产品的朋友可以推荐一下吗？</p>
                        
                        <div class="d-flex flex-wrap justify-content-between align-items-center">
                            <div class="d-flex flex-wrap gap-3 mt-1">
                                <div class="user-info d-flex align-items-center">
                                    <img src="https://picsum.photos/100/100?random=203" alt="提问者头像" style="width: 24px; height: 24px;">
                                    <span class="ms-1 text-sm text-muted">张小红</span>
                                </div>
                                
                                <span class="text-sm text-muted">2天前</span>
                                
                                <div class="stats d-flex gap-3">
                                    <span><i class="far fa-eye"></i> 986</span>
                                    <span><i class="far fa-comment"></i> 12</span>
                                    <span><i class="far fa-thumbs-up"></i> 31</span>
                                </div>
                            </div>
                            
                            <div class="action-buttons d-flex gap-1">
                                <button class="btn btn-sm btn-outline-secondary rounded-pill">
                                    <i class="far fa-thumbs-up"></i>
                                </button>
                                <button class="btn btn-sm btn-outline-secondary rounded-pill">
                                    <i class="far fa-bookmark"></i>
                                </button>
                                <button class="btn btn-sm btn-outline-secondary rounded-pill">
                                    <i class="fas fa-comment"></i>
                                </button>
                                <button class="btn btn-sm btn-primary rounded-pill">
                                    <i class="fas fa-info-circle"></i>
                                </button>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            
            <!-- 无图片的问答 -->
            <div class="qa-card">
                <div class="row">
                    <div class="col-md-12">
                        <h5 class="question-title">
                            <a href="#" class="text-dark text-decoration-none hover:text-primary">Python中如何高效处理大型CSV文件？</a>
                        </h5>
                        
                        <p class="question-text">我有一个大约5GB的CSV文件需要处理，使用pandas的read_csv直接读取会导致内存不足。请问有什么方法可以高效处理这种大型CSV文件而不占用过多内存？</p>
                        
                        <div class="d-flex flex-wrap justify-content-between align-items-center">
                            <div class="d-flex flex-wrap gap-3 mt-1">
                                <div class="user-info d-flex align-items-center">
                                    <img src="https://picsum.photos/100/100?random=204" alt="提问者头像" style="width: 24px; height: 24px;">
                                    <span class="ms-1 text-sm text-muted">陈明</span>
                                </div>
                                
                                <span class="text-sm text-muted">5天前</span>
                                
                                <div class="stats d-flex gap-3">
                                    <span><i class="far fa-eye"></i> 3.2k</span>
                                    <span><i class="far fa-comment"></i> 24</span>
                                    <span><i class="far fa-thumbs-up"></i> 87</span>
                                </div>
                                
                                <span class="qa-status status-resolved"><i class="fas fa-check-circle me-1"></i> 已解决</span>
                            </div>
                            
                            <div class="action-buttons d-flex gap-1">
                                <button class="btn btn-sm btn-outline-secondary rounded-pill">
                                    <i class="far fa-thumbs-up"></i>
                                </button>
                                <button class="btn btn-sm btn-outline-secondary rounded-pill">
                                    <i class="far fa-bookmark"></i>
                                </button>
                                <button class="btn btn-sm btn-outline-secondary rounded-pill">
                                    <i class="fas fa-comment"></i>
                                </button>
                                <button class="btn btn-sm btn-primary rounded-pill">
                                    <i class="fas fa-info-circle"></i>
                                </button>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            
            <!-- 带多张图片的问答 -->
            <div class="qa-card">
                <div class="row">
                    <div class="col-md-2 d-none d-md-block">
                        <div class="images-container multiple-images position-relative" style="height: 100px;">
                            <img src="https://picsum.photos/200/100?random=17" alt="装修风格参考1">
                            <img src="https://picsum.photos/200/100?random=18" alt="装修风格参考2">
                            <span class="image-count-badge">+2</span>
                        </div>
                    </div>
                    <div class="col-md-10">
                        <h5 class="question-title">
                            <a href="#" class="text-dark text-decoration-none hover:text-primary">这种装修风格叫什么？如何用较少预算实现类似效果？</a>
                        </h5>
                        
                        <p class="question-text">看到朋友家的装修效果很喜欢，简约但又不失设计感，色调以灰白为主，有一些原木元素点缀。想知道这种风格具体叫什么？自己装修的话如何在预算有限的情况下实现类似效果？</p>
                        
                        <div class="d-flex flex-wrap justify-content-between align-items-center">
                            <div class="d-flex flex-wrap gap-3 mt-1">
                                <div class="user-info d-flex align-items-center">
                                    <img src="https://picsum.photos/100/100?random=205" alt="提问者头像" style="width: 24px; height: 24px;">
                                    <span class="ms-1 text-sm text-muted">林小美</span>
                                </div>
                                
                                <span class="text-sm text-muted">1周前</span>
                                
                                <div class="stats d-flex gap-3">
                                    <span><i class="far fa-eye"></i> 5.7k</span>
                                    <span><i class="far fa-comment"></i> 36</span>
                                    <span><i class="far fa-thumbs-up"></i> 124</span>
                                </div>
                                
                                <span class="qa-status status-popular"><i class="fas fa-fire me-1"></i> 热门</span>
                            </div>
                            
                            <div class="action-buttons d-flex gap-1">
                                <button class="btn btn-sm btn-outline-secondary rounded-pill">
                                    <i class="far fa-thumbs-up"></i>
                                </button>
                                <button class="btn btn-sm btn-outline-secondary rounded-pill">
                                    <i class="far fa-bookmark"></i>
                                </button>
                                <button class="btn btn-sm btn-outline-secondary rounded-pill">
                                    <i class="fas fa-comment"></i>
                                </button>
                                <button class="btn btn-sm btn-primary rounded-pill">
                                    <i class="fas fa-info-circle"></i>
                                </button>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        
        <!-- 样式3：带侧边统计的问答 -->
        <div class="qa-demo style-3">
            <h3 class="demo-title">3. 带侧边统计的问答</h3>
            
            <!-- 无图片的问答 -->
            <div class="qa-card">
                <div class="row">
                    <div class="col-md-2 stats-sidebar">
                        <div class="d-flex flex-column align-items-center mb-3">
                            <span class="stat-value">15</span>
                            <span class="stat-label">回答</span>
                        </div>
                        <div class="d-flex flex-column align-items-center mb-3">
                            <span class="stat-value">4.8k</span>
                            <span class="stat-label">浏览</span>
                        </div>
                        <div class="d-flex flex-column align-items-center">
                            <span class="stat-value">67</span>
                            <span class="stat-label">赞同</span>
                        </div>
                    </div>
                    <div class="col-md-10">
                        <div class="qa-content">
                            <div class="d-flex justify-content-between align-items-start mb-2">
                                <h5 class="question-title">
                                    <a href="#" class="text-dark text-decoration-none hover:text-primary">30岁转行做程序员还来得及吗？需要做哪些准备？</a>
                                </h5>
                                <span class="qa-status status-popular"><i class="fas fa-fire me-1"></i> 热门</span>
                            </div>
                            
                            <p class="question-text mb-3">我今年30岁，一直在做市场营销工作，最近对编程产生了浓厚兴趣，想转行做程序员。但担心年龄太大，学习能力下降，而且没有相关工作经验。想问问有类似经历的人，这个年纪转行还来得及吗？需要做哪些准备？</p>
                            
                            <div class="d-flex flex-wrap justify-content-between align-items-center">
                                <div class="user-info d-flex align-items-center">
                                    <img src="https://picsum.photos/100/100?random=206" alt="提问者头像">
                                    <div class="ms-2">
                                        <div class="font-medium">赵伟</div>
                                        <div class="text-sm text-muted">提问于 <span class="qa-date">2周前</span></div>
                                    </div>
                                </div>
                                
                                <div class="action-buttons d-flex gap-2">
                                    <button class="btn btn-sm btn-outline-primary rounded-pill">
                                        <i class="far fa-thumbs-up me-1"></i> 赞同
                                    </button>
                                    <button class="btn btn-sm btn-outline-secondary rounded-pill">
                                        <i class="far fa-bookmark me-1"></i> 收藏
                                    </button>
                                    <button class="btn btn-sm btn-primary rounded-pill">
                                        <i class="fas fa-comment me-1"></i> 回答
                                    </button>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            
            <!-- 带图片的问答 -->
            <div class="qa-card">
                <div class="row">
                    <div class="col-md-2 stats-sidebar">
                        <div class="d-flex flex-column align-items-center mb-3">
                            <span class="stat-value">8</span>
                            <span class="stat-label">回答</span>
                        </div>
                        <div class="d-flex flex-column align-items-center mb-3">
                            <span class="stat-value">1.2k</span>
                            <span class="stat-label">浏览</span>
                        </div>
                        <div class="d-flex flex-column align-items-center">
                            <span class="stat-value">24</span>
                            <span class="stat-label">赞同</span>
                        </div>
                    </div>
                    <div class="col-md-10">
                        <div class="qa-content">
                            <div class="d-flex justify-content-between align-items-start mb-2">
                                <h5 class="question-title">
                                    <a href="#" class="text-dark text-decoration-none hover:text-primary">这种昆虫叫什么名字？是否有毒？</a>
                                </h5>
                                <span class="qa-status status-resolved"><i class="fas fa-check-circle me-1"></i> 已解决</span>
                            </div>
                            
                            <p class="question-text mb-3">在院子里发现了这种昆虫，从来没见过，身体是绿色的，有长长的触角，翅膀透明。想知道它叫什么名字，是否有毒，对植物有没有危害？</p>
                            
                            <!-- 单张图片 -->
                            <div class="images-container mb-3">
                                <img src="https://picsum.photos/600/300?random=19" alt="昆虫照片" class="single-image">
                            </div>
                            
                            <div class="d-flex flex-wrap justify-content-between align-items-center">
                                <div class="user-info d-flex align-items-center">
                                    <img src="https://picsum.photos/100/100?random=207" alt="提问者头像">
                                    <div class="ms-2">
                                        <div class="font-medium">孙芳</div>
                                        <div class="text-sm text-muted">提问于 <span class="qa-date">5天前</span></div>
                                    </div>
                                </div>
                                
                                <div class="action-buttons d-flex gap-2">
                                    <button class="btn btn-sm btn-outline-primary rounded-pill">
                                        <i class="far fa-thumbs-up me-1"></i> 赞同
                                    </button>
                                    <button class="btn btn-sm btn-outline-secondary rounded-pill">
                                        <i class="far fa-bookmark me-1"></i> 收藏
                                    </button>
                                    <button class="btn btn-sm btn-primary rounded-pill">
                                        <i class="fas fa-comment me-1"></i> 回答
                                    </button>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        
        <!-- 样式4：突出回答的问答 -->
        <div class="qa-demo style-4">
            <h3 class="demo-title">4. 突出回答的问答</h3>
            
            <!-- 无图片的问答 -->
            <div class="qa-card">
                <div class="qa-header">
                    <h5 class="question-title mb-2">
                        <a href="#" class="text-dark text-decoration-none hover:text-primary">每天坚持30分钟跑步，一个月能瘦多少斤？</a>
                    </h5>
                    
                    <div class="user-info d-flex align-items-center mb-2">
                        <img src="https://picsum.photos/100/100?random=208" alt="提问者头像">
                        <div class="ms-2">
                            <div class="font-medium">刘杰</div>
                            <div class="text-sm text-muted">提问于 <span class="qa-date">1个月前</span> · <i class="far fa-eye"></i> 12.5k 浏览</div>
                        </div>
                    </div>
                    
                    <p class="question-text">我想通过跑步减肥，计划每天坚持30分钟跑步，饮食上稍微控制一下，不吃高热量食物。请问这样坚持一个月大概能瘦多少斤？有经验的朋友可以分享一下吗？</p>
                </div>
                
                <!-- 最佳回答 -->
                <div class="best-answer">
                    <span class="best-answer-label">最佳回答</span>
                    <div class="user-info d-flex align-items-center mb-2">
                        <img src="https://picsum.photos/100/100?random=209" alt="回答者头像" style="width: 28px; height: 28px;">
                        <div class="ms-2">
                            <div class="font-medium text-sm">陈医生 <span class="text-muted">(运动医学专业)</span></div>
                            <div class="text-xs text-muted">回答于 <span class="qa-date">1个月前</span></div>
                        </div>
                    </div>
                    <p class="answer-text">每天坚持30分钟跑步，配合适当的饮食控制，一个月大约能瘦3-5斤。这个数字会因人而异，取决于你的基础代谢率、跑步强度、饮食控制程度等因素。需要注意的是，健康的减重速度是每周0.5-1斤，过快的减重可能会对身体造成负担...</p>
                    <div class="d-flex gap-3 mt-2">
                        <span class="text-sm text-muted"><i class="far fa-thumbs-up"></i> 328 赞同</span>
                        <span class="text-sm text-muted"><i class="far fa-comment"></i> 56 条评论</span>
                    </div>
                </div>
                
                <div class="qa-footer">
                    <div class="stats d-flex gap-4">
                        <span><i class="far fa-comment"></i> 42 个回答</span>
                        <span><i class="far fa-bookmark"></i> 156 人收藏</span>
                    </div>
                    
                    <div class="action-buttons d-flex gap-2">
                        <button class="btn btn-sm btn-outline-primary rounded-pill">
                            <i class="far fa-thumbs-up me-1"></i> 赞同问题
                        </button>
                        <button class="btn btn-sm btn-outline-secondary rounded-pill">
                            <i class="far fa-bookmark me-1"></i> 收藏
                        </button>
                        <button class="btn btn-sm btn-primary rounded-pill">
                            <i class="fas fa-comment me-1"></i> 我来回答
                        </button>
                        <button class="btn btn-sm btn-outline-secondary rounded-pill">
                            <i class="fas fa-info-circle me-1"></i> 查看全部回答
                        </button>
                    </div>
                </div>
            </div>
            
            <!-- 带多张图片的问答 -->
            <div class="qa-card">
                <div class="qa-header">
                    <h5 class="question-title mb-2">
                        <a href="#" class="text-dark text-decoration-none hover:text-primary">这是什么花？如何养护才能开花更多？</a>
                    </h5>
                    
                    <div class="user-info d-flex align-items-center mb-2">
                        <img src="https://picsum.photos/100/100?random=210" alt="提问者头像">
                        <div class="ms-2">
                            <div class="font-medium">周婷</div>
                            <div class="text-sm text-muted">提问于 <span class="qa-date">2周前</span> · <i class="far fa-eye"></i> 3.7k 浏览</div>
                        </div>
                    </div>
                    
                    <p class="question-text">朋友送了一盆花，开的花很漂亮，但不知道叫什么名字。最近有些花瓣开始凋谢，想了解一下这是什么花，如何养护才能让它开花更多、更持久？</p>
                    
                    <!-- 多张图片 -->
                    <div class="images-container multiple-images mb-2">
                        <img src="https://picsum.photos/300/200?random=20" alt="花卉照片1">
                        <img src="https://picsum.photos/300/200?random=21" alt="花卉照片2">
                        <img src="https://picsum.photos/300/200?random=22" alt="花卉照片3">
                    </div>
                </div>
                
                <!-- 最佳回答 -->
                <div class="best-answer">
                    <span class="best-answer-label">最佳回答</span>
                    <div class="user-info d-flex align-items-center mb-2">
                        <img src="https://picsum.photos/100/100?random=211" alt="回答者头像" style="width: 28px; height: 28px;">
                        <div class="ms-2">
                            <div class="font-medium text-sm">李园艺师 <span class="text-muted">(资深园艺爱好者)</span></div>
                            <div class="text-xs text-muted">回答于 <span class="qa-date">2周前</span></div>
                        </div>
                    </div>
                    <p class="answer-text">这是天竺葵，也叫洋绣球，是非常受欢迎的室内观赏花卉。要让它开花更多，需要注意以下几点：1. 保证充足的光照，每天至少4-6小时阳光；2. 浇水要见干见湿，避免盆内积水；3. 花期前可以施加磷钾肥，促进花芽分化；4. 花谢后及时修剪残花，促进新枝生长...</p>
                    <div class="d-flex gap-3 mt-2">
                        <span class="text-sm text-muted"><i class="far fa-thumbs-up"></i> 87 赞同</span>
                        <span class="text-sm text-muted"><i class="far fa-comment"></i> 12 条评论</span>
                    </div>
                </div>
                
                <div class="qa-footer">
                    <div class="stats d-flex gap-4">
                        <span><i class="far fa-comment"></i> 15 个回答</span>
                        <span><i class="far fa-bookmark"></i> 42 人收藏</span>
                    </div>
                    
                    <div class="action-buttons d-flex gap-2">
                        <button class="btn btn-sm btn-outline-primary rounded-pill">
                            <i class="far fa-thumbs-up me-1"></i> 赞同问题
                        </button>
                        <button class="btn btn-sm btn-outline-secondary rounded-pill">
                            <i class="far fa-bookmark me-1"></i> 收藏
                        </button>
                        <button class="btn btn-sm btn-primary rounded-pill">
                            <i class="fas fa-comment me-1"></i> 我来回答
                        </button>
                        <button class="btn btn-sm btn-outline-secondary rounded-pill">
                            <i class="fas fa-info-circle me-1"></i> 查看全部回答
                        </button>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <!-- Bootstrap 5 JS Bundle with Popper -->
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
    <script>
        // 为交互按钮添加功能
        document.addEventListener('DOMContentLoaded', function() {
            // 点赞按钮交互
            const likeButtons = document.querySelectorAll('button:has(.far.fa-thumbs-up)');
            likeButtons.forEach(button => {
                button.addEventListener('click', function() {
                    const icon = this.querySelector('.far.fa-thumbs-up');
                    if (icon) {
                        // 切换图标
                        icon.classList.toggle('far');
                        icon.classList.toggle('fas');
                        
                        // 切换按钮样式
                        this.classList.toggle('btn-outline-primary');
                        this.classList.toggle('btn-primary');
                    }
                });
            });
            
            // 收藏按钮交互
            const bookmarkButtons = document.querySelectorAll('button:has(.far.fa-bookmark)');
            bookmarkButtons.forEach(button => {
                button.addEventListener('click', function() {
                    const icon = this.querySelector('.far.fa-bookmark');
                    if (icon) {
                        icon.classList.toggle('far');
                        icon.classList.toggle('fas');
                        
                        // 切换按钮样式
                        this.classList.toggle('btn-outline-secondary');
                        this.classList.toggle('btn-success');
                    }
                });
            });
            
            // 回答按钮交互
            const answerButtons = document.querySelectorAll('button:has(.fas.fa-comment)');
            answerButtons.forEach(button => {
                button.addEventListener('click', function() {
                    const card = this.closest('.qa-card');
                    const title = card.querySelector('.question-title a').textContent;
                    alert(`准备回答："${title}"`);
                    // 实际应用中可以跳转到回答页面或显示回答框
                });
            });
            
            // 详情按钮交互
            const detailButtons = document.querySelectorAll('button:has(.fas.fa-info-circle)');
            detailButtons.forEach(button => {
                button.addEventListener('click', function() {
                    const card = this.closest('.qa-card');
                    const title = card.querySelector('.question-title a').textContent;
                    alert(`查看问题详情："${title}"`);
                    // 实际应用中可以跳转到详情页
                });
            });
        });
    </script>
</body>
</html>
    